# $FreeBSD: x11-themes/qsvgstyle-qt4 $

PORTNAME=	qsvgstyle
PORTVERSION=	1.0
CATEGORIES=	x11-themes
MASTER_SITES=	http://saidlankri.free.fr/
PKGNAMESUFFIX=	-qt4
DISTNAME=	QSvgStyle

MAINTAINER=	ports@freebsd.org
COMMENT=	SVG themeable style for Qt4

LICENSE=	GPLv2
LICENSE_FILE=	${WRKSRC}/COPYING

USES=		qmake
USE_QT4=	dbus gui svg imageformats_run \
		qmake_build uic_build moc_build rcc_build
CFLAGS+=	-I${LOCALBASE}/include

WRKSRC=	${WRKDIR}/${DISTNAME}

PLIST_FILES=	${QT_PLUGINDIR_REL}/styles/libqsvgstyle.so \
		${LOCALBASE}/bin/qsvgthemebuilder

do-install:
	${MKDIR} ${STAGEDIR}${PREFIX}/${QT_PLUGINDIR_REL}/styles/
	${INSTALL_LIB} ${WRKSRC}/style/plugins/libqsvgstyle.so ${STAGEDIR}${PREFIX}/${QT_PLUGINDIR_REL}/styles/
	${INSTALL_PROGRAM} ${WRKSRC}/themebuilder/bin/qsvgthemebuilder ${STAGEDIR}${PREFIX}/bin/

.include <bsd.port.mk>
